if fr=1 then 'MESSAGE("Installez rexxsupport.library"+CHR(10)+"dans votre répertoire libs: avant"+CHR(10)+"d''utiliser cette macro")'
else 'MESSAGE("Install rexxsupport.library"+CHR(10)+"in your libs: drawer before"+CHR(10)+"calling this script")'
exit /* version 1.02 */
end
end
a=setclip(sauvegarde.port,1)
if fr=1 then 'MESSAGE("Une sauvegarde automatique"+CHR(10)+"aura lieu toutes les deux"+CHR(10)+"minutes si le contenu de cette"+CHR(10)+"fenêtre a été modifié."+CHR(10)+"Sélectionnez à nouveau ce script"+CHR(10)+"pour arrêter son exécution.")'
else 'MESSAGE("An automatic saving"+CHR(10)+"will happen all two"+CHR(10)+"minutes if the content of this"+CHR(10)+"window has been modified."+CHR(10)+"Select again this script"+CHR(10)+"to stop its execution.")'
do forever /* Boucle infinie */
call delay(6000) /* Délai de deux minutes */
if ~show(p, port) then goto error
sauver_auto = getclip(sauvegarde.port)
if sauver_auto=1 then do
'MODIF' /* Test si texte modifié */
if result~=0 THEN do
'FILEPART("")'
if fr=1 then do
if result="Innomé" then do /* Version 2.01 */
'REQUEST("Attention le fichier"+CHR(10)+"n''a pas été nommé, sa"+CHR(10)+"sauvegarde est donc impossible"+CHR(10)+"voulez-vous le nommer?")'
if result<1 then exit
'MENU("Rename")'
'FILEPART("")'
if result="Innomé" then exit
end
end
else do
if result="Unamed" then do
'REQUEST("Warning: the file"+CHR(10)+"has not been named, its"+CHR(10)+"saving is impossible"+CHR(10)+"Do-you want to name it?")'